.chat-container {
    height: calc(100vh - 60px);
    display: flex;
    overflow: hidden;
}

.conversation-list {
    width: 300px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.conversation-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.conversation-item:hover {
    background-color: #f9fafb;
}

.conversation-item.active {
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
}

.conversation-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
    padding: 24px;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    color: #9ca3af;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
}

.user-message {
    align-self: flex-end;
    background-color: #3b82f6;
    color: white;
}

.assistant-message {
    align-self: flex-start;
    background-color: white;
    border: 1px solid #e5e7eb;
}

.message-input-area {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background-color: white;
}

.message-input-container {
    display: flex;
    gap: 8px;
}

.message-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 12px 16px;
    resize: none;
    font-size: 1rem;
    min-height: 48px;
    max-height: 120px;
}

.message-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.send-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #2563eb;
}

.shortcut-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.shortcut-question {
    padding: 8px 12px;
    background-color: #f3f4f6;
    border-radius: 16px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.shortcut-question:hover {
    background-color: #e5e7eb;
}

.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .conversation-list {
        width: 100%;
        position: absolute;
        height: 100%;
        z-index: 100;
    }

    .chat-area {
        width: 100%;
    }

    .message {
        max-width: 85%;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Header styles */
.header {
    height: 60px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: #3b82f6;
}

.new-chat-button {
    margin-left: auto;
    padding: 8px 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.new-chat-button:hover {
    background-color: #2563eb;
}

/* Empty state for conversations */
.empty-conversations {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    padding: 24px;
    text-align: center;
}

.empty-conversations-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Message timestamp */
.message-timestamp {
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}